/*
package exe.jvmbytecodes;

class Bytecode_sub extends Bytecode_ {
	
	
	Bytecode_sub(String str) {
		System.out.println("Enter Bytecode_sub constructor");
		parse(str);
		System.out.println("Complete Bytecode_parse");

	}

	public int execute(GenerateBytecodes gbc) {
		System.out.println("Enter Bytecode_sub execute");
		//Subtract
		//total: 4
		//I have tested each path in this block 15/6/10
		if(opcode.contains("sub"))
		{
		Object x, y;
		x = _stack.pop();
		y = _stack.pop();
		//isub
		if(opcode.contains("i"))
		{
		_stack.push((Integer) x - (Integer) y);
		System.out.println(_stack.peek() + " " + _stack.peek().getClass());
		}
		//lsub
		else if(opcode.contains("l"))
		{
		_stack.push((Long) x - (Long) y);
		System.out.println(_stack.peek() + " " + _stack.peek().getClass());
		}
		//fsub
		else if(opcode.contains("f"))
		{
		_stack.push((Float) x - (Float) y);
		System.out.println(_stack.peek() + " " + _stack.peek().getClass());
		}
		//dsub
		else if(opcode.contains("d"))
		{
		_stack.push((Double) x - (Double) y);
		System.out.println(_stack.peek() + " " + _stack.peek().getClass());
		}
		else
		{
		System.out.println("Unrecognized opcode");
		}
		}
		return 1;
	}
}*/
